package com.ts.ischool.pojo;

import java.io.Serializable;
import java.util.Date;

public class CalendarBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 545413516920193540L;
	private Long id;
	private String userId;
	private String googleId;
	private String subject;
	private String location;
	private int timeZone;
	private String description;
	private Date startTime;
	private Date endTime;
	private int isAllDayEvent = 0;
	private int hasAttachment = 0;
	private String category;
	private int instanceType;
	private String attendees;
	private String otherAttendee;
	private String recurringRule;
	private Date createDt;
	private String createBy;
	private Date updateDt;
	private String updateBy;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGoogleId() {
		return googleId;
	}

	public void setGoogleId(String googleId) {
		this.googleId = googleId;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public int getTimeZone() {
		return timeZone;
	}

	public void setTimeZone(int timeZone) {
		this.timeZone = timeZone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getIsAllDayEvent() {
		return isAllDayEvent;
	}

	public void setIsAllDayEvent(int isAllDayEvent) {
		this.isAllDayEvent = isAllDayEvent;
	}

	public int getHasAttachment() {
		return hasAttachment;
	}

	public void setHasAttachment(int hasAttachment) {
		this.hasAttachment = hasAttachment;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public int getInstanceType() {
		return instanceType;
	}

	public void setInstanceType(int instanceType) {
		this.instanceType = instanceType;
	}

	public String getAttendees() {
		return attendees;
	}

	public void setAttendees(String attendees) {
		this.attendees = attendees;
	}

	public String getOtherAttendee() {
		return otherAttendee;
	}

	public void setOtherAttendee(String otherAttendee) {
		this.otherAttendee = otherAttendee;
	}

	public String getRecurringRule() {
		return recurringRule;
	}

	public void setRecurringRule(String recurringRule) {
		this.recurringRule = recurringRule;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	
	public boolean equals(Object object) {
		if (this == object)
			return true;
		if (object == null)
			return false;

		if (CalendarBean.class.isInstance(object)) {
			CalendarBean peer = (CalendarBean) object;
			if (this.getGoogleId().equals( peer.getGoogleId())) {
				return true;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}

	public int hashCode() {
		StringBuffer sb = new StringBuffer();
		sb.append("CalendarBean:").append(this.getGoogleId());
		return sb.toString().hashCode();
	}
}
